<?php
// +----------------------------------------------------------------------
// | Author: yaoyihong <510974211@qq.com>
// +----------------------------------------------------------------------
namespace addon\mall\model;
use \think\Request;
use app\common\model\AddonBase;
class OrderGoods extends AddonBase
{
	public $auto = ['spec_key_name'];
	protected function getGoodsThumbAttr($value){
		if ($value && !preg_match('/^http(s)?:\\/\\/.+/', $value)) {
            return SITE_PATH . $value;
        } else {
            return $value;
        }
	}

	protected function setSpecKeyNameAttr($value){
		return str_replace(PHP_EOL, '', $value);
	}
}
